#ifndef TEXTUREMANAGER_H_
#define TEXTUREMANAGER_H_

#include <string>
#include <map>

class Texture;

typedef std::map< std::string, Texture* > TexturesByName;

class TextureManager
{
private:
	TextureManager(){}
	TextureManager(TextureManager const&){}
//	TextureManager& operator=(TextureManager const&){}

	~TextureManager();

	TexturesByName		textures;

public:
	static TextureManager& instance()
	{
		static TextureManager m;
		return m;
	}
	const Texture* getTextureByName( const std::string &name );
    
    void unloadTextures();
    
};
#endif